SetControlBackColour

Definition:

SetControlBackColour(control, red, green, blue)

 

Description:

Set the background colour for a control.

 

Platforms:

All

 

Parameters:

control - required

Name of the control whose background colour you want to change.

 

red - required

Value of the red component of the required background colour.

Must be an integer in the range: 0 – 255.

 

green - required

Value of the green component of the required background colour.

Must be an integer in the range: 0 – 255.

 

blue - required

Value of the blue component of the required background colour.

Must be an integer in the range: 0 – 255.

 

Returns:

nothing

 

Notes:

The effect of changing the background colour varies depending upon the type of control and the Target Platform:

  • On Android Devices, by default, you can use this Method to change the background colour for a Button, Date Picker, HTML Text or Static Text Control.

    You can also extend the use of this Method to change the background colour of Edit Controls or Combo Boxes (both types) as well, but in order to affect these controls, you will need to edit the Script assigned to the Application level OnLoad Event first.

  • On iOS devices you can change the background colour for all controls.

  • On the Windows Universal Platform, you can change the background colour for all controls except Progress and Slider Controls.

  • On the Windows Desktop Platform you can change the background colour for all controls except Slider Controls.